function WebForm_PostBackOptions(eventTarget,eventArgument,validation,validationGroup,actionUrl,trackFocus,clientSubmit){this.eventTarget=eventTarget;this.eventArgument=eventArgument;this.validation=validation;this.validationGroup=validationGroup;this.actionUrl=actionUrl;this.trackFocus=trackFocus;this.clientSubmit=clientSubmit;} function WebForm_DoPostBackWithOptions(options){var validationResult=true;if(options.validation){if(typeof(Page_ClientValidate)=='function'){validationResult=Page_ClientValidate(options.validationGroup);}} if(validationResult){if((typeof(options.actionUrl)!="undefined")&&(options.actionUrl!=null)&&(options.actionUrl.length>0)){theForm.action=options.actionUrl;} if(options.trackFocus){var lastFocus=theForm.elements["__LASTFOCUS"];if((typeof(lastFocus)!="undefined")&&(lastFocus!=null)){if(typeof(document.activeElement)=="undefined"){lastFocus.value=options.eventTarget;} else{var active=document.activeElement;if((typeof(active)!="undefined")&&(active!=null)){if((typeof(active.id)!="undefined")&&(active.id!=null)&&(active.id.length>0)){lastFocus.value=active.id;} else if(typeof(active.name)!="undefined"){lastFocus.value=active.name;}}}}}} if(options.clientSubmit){__doPostBack(options.eventTarget,options.eventArgument);}} var __pendingCallbacks=new Array();var __synchronousCallBackIndex=-1;function WebForm_DoCallback(eventTarget,eventArgument,eventCallback,context,errorCallback,useAsync){var postData=__theFormPostData+"__CALLBACKID="+WebForm_EncodeCallback(eventTarget)+"&__CALLBACKPARAM="+WebForm_EncodeCallback(eventArgument);if(theForm["__EVENTVALIDATION"]){postData+="&__EVENTVALIDATION="+WebForm_EncodeCallback(theForm["__EVENTVALIDATION"].value);} var xmlRequest,e;try{xmlRequest=new XMLHttpRequest();} catch(e){try{xmlRequest=new ActiveXObject("Microsoft.XMLHTTP");} catch(e){}} var setRequestHeaderMethodExists=true;try{setRequestHeaderMethodExists=(xmlRequest&&xmlRequest.setRequestHeader);} catch(e){} var callback=new Object();callback.eventCallback=eventCallback;callback.context=context;callback.errorCallback=errorCallback;callback.async=useAsync;var callbackIndex=WebForm_FillFirstAvailableSlot(__pendingCallbacks,callback);if(!useAsync){if(__synchronousCallBackIndex!=-1){__pendingCallbacks[__synchronousCallBackIndex]=null;} __synchronousCallBackIndex=callbackIndex;} if(setRequestHeaderMethodExists){xmlRequest.onreadystatechange=WebForm_CallbackComplete;callback.xmlRequest=xmlRequest;var action=theForm.action||document.location.pathname,fragmentIndex=action.indexOf('#');if(fragmentIndex!==-1){action=action.substr(0,fragmentIndex);} if(!__nonMSDOMBrowser){var domain="";var path=action;var query="";var queryIndex=action.indexOf('?');if(queryIndex!==-1){query=action.substr(queryIndex);path=action.substr(0,queryIndex);} if(path.indexOf("%")===-1){if(/^https?\:\/\/.*$/gi.test(path)){var domainPartIndex=path.indexOf("\/\/")+2;var slashAfterDomain=path.indexOf("/",domainPartIndex);if(slashAfterDomain===-1){domain=path;path="";} else{domain=path.substr(0,slashAfterDomain);path=path.substr(slashAfterDomain);}} action=domain+encodeURI(path)+query;}} xmlRequest.open("POST",action,true);xmlRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");xmlRequest.send(postData);return;} callback.xmlRequest=new Object();var callbackFrameID="__CALLBACKFRAME"+callbackIndex;var xmlRequestFrame=document.frames[callbackFrameID];if(!xmlRequestFrame){xmlRequestFrame=document.createElement("IFRAME");xmlRequestFrame.width="1";xmlRequestFrame.height="1";xmlRequestFrame.frameBorder="0";xmlRequestFrame.id=callbackFrameID;xmlRequestFrame.name=callbackFrameID;xmlRequestFrame.style.position="absolute";xmlRequestFrame.style.top="-100px" xmlRequestFrame.style.left="-100px";try{if(callBackFrameUrl){xmlRequestFrame.src=callBackFrameUrl;}} catch(e){} document.body.appendChild(xmlRequestFrame);} var interval=window.setInterval(function(){xmlRequestFrame=document.frames[callbackFrameID];if(xmlRequestFrame&&xmlRequestFrame.document){window.clearInterval(interval);xmlRequestFrame.document.write("");xmlRequestFrame.document.close();xmlRequestFrame.document.write('
');xmlRequestFrame.document.close();xmlRequestFrame.document.forms[0].action=theForm.action;var count=__theFormPostCollection.length;var element;for(var i=0;i=0){element.className=WebForm_TrimString(currentClassName.substring(0,index)+' '+currentClassName.substring(index+className.length+1,currentClassName.length));}} function WebForm_GetElementById(elementId){if(document.getElementById){return document.getElementById(elementId);} else if(document.all){return document.all[elementId];} else return null;} function WebForm_GetElementByTagName(element,tagName){var elements=WebForm_GetElementsByTagName(element,tagName);if(elements&&elements.length>0){return elements[0];} else return null;} function WebForm_GetElementsByTagName(element,tagName){if(element&&tagName){if(element.getElementsByTagName){return element.getElementsByTagName(tagName);} if(element.all&&element.all.tags){return element.all.tags(tagName);}} return null;} function WebForm_GetElementDir(element){if(element){if(element.dir){return element.dir;} return WebForm_GetElementDir(element.parentNode);} return"ltr";} function WebForm_GetElementPosition(element){var result=new Object();result.x=0;result.y=0;result.width=0;result.height=0;if(element.offsetParent){result.x=element.offsetLeft;result.y=element.offsetTop;var parent=element.offsetParent;while(parent){result.x+=parent.offsetLeft;result.y+=parent.offsetTop;var parentTagName=parent.tagName.toLowerCase();if(parentTagName!="table"&&parentTagName!="body"&&parentTagName!="html"&&parentTagName!="div"&&parent.clientTop&&parent.clientLeft){result.x+=parent.clientLeft;result.y+=parent.clientTop;} parent=parent.offsetParent;}} else if(element.left&&element.top){result.x=element.left;result.y=element.top;} else{if(element.x){result.x=element.x;} if(element.y){result.y=element.y;}} if(element.offsetWidth&&element.offsetHeight){result.width=element.offsetWidth;result.height=element.offsetHeight;} else if(element.style&&element.style.pixelWidth&&element.style.pixelHeight){result.width=element.style.pixelWidth;result.height=element.style.pixelHeight;} return result;} function WebForm_GetParentByTagName(element,tagName){var parent=element.parentNode;var upperTagName=tagName.toUpperCase();while(parent&&(parent.tagName.toUpperCase()!=upperTagName)){parent=parent.parentNode?parent.parentNode:parent.parentElement;} return parent;} function WebForm_SetElementHeight(element,height){if(element&&element.style){element.style.height=height+"px";}} function WebForm_SetElementWidth(element,width){if(element&&element.style){element.style.width=width+"px";}} function WebForm_SetElementX(element,x){if(element&&element.style){element.style.left=x+"px";}} function WebForm_SetElementY(element,y){if(element&&element.style){element.style.top=y+"px";}}